package com.testlio.assignment.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;

/**
 * Request DTO for creating a new issue.
 * Contains only the fields that can be set when creating an issue.
 * Timestamps are handled automatically by the service layer.
 */
@Data
public class CreateIssueRequest {
    /**
     * The title of the issue.
     * Must not be blank (null, empty, or whitespace only).
     */
    @NotBlank(message = "Title is required")
    private String title;

    /**
     * The detailed description of the issue.
     * Must not be blank (null, empty, or whitespace only).
     */
    @NotBlank(message = "Description is required")
    private String description;

    @NotBlank(message = "Created by is required")
    private String createdBy;
}